<?php
/**
 * 发现页控制器
 *
 * 发现页controller
 *
 * @author    zhouchao <zhouchao@yunys.com.cn>
 * @copyright 2016 QuanZhouYunYiShang Inc.
 */
namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Services\CarouselsService\CarouselsService;
use App\Services\FindModuleService\FindModuleService;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Response;
use App\Services\TypesService\TypesService;

class FindModuleController extends Controller
{
    protected $findModuleService;

    public function __construct(FindModuleService $FindModuleService)
    {
        $this->findModuleService = $FindModuleService;
    }

    public function postIndex(Request $request){
        $user_id = intval($request->input('user_id'));
        $result = $this->findModuleService->getList($user_id);
        return Response::json($result);
    }
}
